extends Control
class_name RankItem

var scoreInfo
@onready var userNameLabel = $UserName
@onready var scoreLabel = $Score

func setScoreInfo(info):
	scoreInfo = info
	updateView()
	
	
func updateView():
	userNameLabel.text = scoreInfo["userName"]
	scoreLabel.text = str(scoreInfo["score"]) 
	
